package pack0601;

//运算符-----逻辑运算符  &&  ||  !
public class DemoD {
    public static void main(String[] args) {
        boolean b1 = true;
        boolean b2 = false;
        boolean b3 = b1 && b2; //false
        System.out.println(b3);
        boolean b4 = 8>7 && 4<7; //true&&true---true
        System.out.println(b4);
        boolean b5 = b1 || b2; //ture||false---true
        System.out.println(b5);
        boolean b6 = 4>9 || 9>2;
        System.out.println(b6); //false||true---true
        boolean b7 = !b6; //取反
        System.out.println(b7);
    }
}
